/**
 * \file error.h
 * \brief Defines Error codes and manipulation functions.
 */
#ifndef ERRORS_H_
#define ERRORS_H_

typedef enum {
	SUCCESS,
	MEMORY_ALLOC,
	BAD_FILE_FORMAT,
	CANT_OPEN_FILE,
	NULL_POINTER
}ErrCode;

/**
 * Concatenates the given string with the human readable translation of the
 * given error code.
 * @param msg Prefix text added to error message.
 * @param error Code of the error encountered.
 */
extern void errorToStderr(const char msg[], ErrCode error);

#endif /*ERRORS_H_*/
